package org.inspursc.s0517.health.evaluation.service;

import org.inspursc.s0517.health.evaluation.service.impl.BasicSurveyAppraiseServiceImpl;
import org.inspursc.s0517.health.evaluation.service.impl.OneSurveyAppraiseServiceImpl;

/**
 * @author B_Dream
 * @version ：2018/7/9 14:32
 */
public class AppraiseFactoryService {
    public static final int ONE_SURVEY = 1;

    public static final int BASIC_SURVEY = 2;

    public static SurveyAppraiseService getAppraise(int type) {
        switch (type) {
            case ONE_SURVEY:
                return new OneSurveyAppraiseServiceImpl();
            case BASIC_SURVEY:
                return new BasicSurveyAppraiseServiceImpl();
            case 3:
                return new BasicSurveyAppraiseServiceImpl();
            default:
                return null;
        }
    }


}
